package model.agent.mapper;


import model.agent.entity.Newagent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


/**
 * Created by Administrator on 2019/6/23.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class testnewmapper {
    @Autowired
    private INewagentMapper mapper;
    @Test
    public void testSave() {
        Newagent newagent = new Newagent("22", "8", "唐诚", "1", "2", "5", "5", "9");

        mapper.save(newagent);
    }
    @Test
    public void test(){
       Newagent newagent= mapper.getById("22");
        System.out.println(newagent);

    }
    @Test
    public void testfindall(){
       mapper.findall("唐");


    }
    @Test
    public void testdel(){
        mapper.del("tang");
    }
    @Test
    public void testupdate(){

  mapper.update("12","tang");

    }
}
